package com.gitee.wsl.markdown

import com.gitee.wsl.model.plugin.ModelPluginInstance

import com.gitee.wsl.prop.AttributeKey


open class MarkwonModelPluginInstance<PluginConfig>(
    key: AttributeKey<ModelPluginInstance<Markwon, PluginConfig, MarkwonModelPluginBuilder<PluginConfig>>>,
    config: PluginConfig,
    override val body: MarkwonModelPluginBuilder<PluginConfig>.() -> Unit
): ModelPluginInstance<Markwon, PluginConfig, MarkwonModelPluginBuilder<PluginConfig>>(key, config, body) {

    override fun createBuilder(
        key: AttributeKey<ModelPluginInstance<Markwon, PluginConfig, MarkwonModelPluginBuilder<PluginConfig>>>,
        scope: Markwon,
        pluginConfig: PluginConfig,
    ) = MarkwonModelPluginBuilder(key,scope,pluginConfig)

}